
window.fmvm = new Vue({
    el:'#app',
    data: {
      data: [],
      activeName: 'first',
      main_title: '',
      
    },
    methods: {
      handleClick(tab, event) {
        const data= 'asd'
        axios.post('http://127.0.0.1:8000/api/get_homework_student').then( (res) => {
            this.data = res.data
            console.log(res.data);
        })  
        this.bb()
      },
      bb() {
        let data = window.parent.document.getElementById('tit')
        if (data) {
          data = data.innerHTML;
          }
          console.log(data);
        axios.post('http://127.0.0.1:8000/api/get_homework_student',data).then( (res) => {
            if (res.data) {
              console.log(res.data.homework);
            this.data = JSON.parse(res.data.homework)
          }
        //   window.parent.document.getElementById('iframeBox').style.height = window.document.documentElement.offsetHeight + 200 + 'px'
        //   console.log(window.parent.document.getElementById('iframeBox'), 'asdfasdf',  window.document.documentElement.offsetHeight)
        })  
      },
    },
    created() {
      this.bb()
    }
  })